﻿namespace WhoCanHelpMe.Web.Controllers.Search.Mappers
{
    #region Using Directives

    using AutoMapper;

    using Contracts;

    using Domain;

    using ViewModels;

    #endregion

    public class TagViewModelMapper : ITagViewModelMapper
    {
        public TagViewModelMapper()
        {
            Mapper.CreateMap<Tag, TagViewModel>();
        }

        public TagViewModel MapFrom(Tag input)
        {
            return Mapper.Map<Tag, TagViewModel>(input);
        }
    }
}